<template>
	<div class="root">
		<div class="root-top">
			<h1 @click="btn()">退出登录》</h1>
			<img src="../../../../public/grzx/1.png" />
			<p>yxk_00356...</p>
			<label>
				<aside>
					<em>Iv.1 普陀山</em>
				</aside>
				<span>
					<img src="../../../../public/fun/img-35.png" />
					<em>普通会员</em>
				</span>
			</label>
		</div>
		<div class="root-bottom">
			<aside>未获得</aside>
			<img src="../../../../public/grzx/4.png" />
			<p>游侠风户外会员</p>
			<label>全站200+户外线路免费畅玩</label>
			<input type="button" value="立即开通" @click="btn()"/>
		</div>
	</div>
</template>

<script>
	
	import Cookies from 'js-cookie'
	
	export default{
		name:'Root',
		methods:{
			btn(){
				Cookies.remove('demo_uname')
				location.href='http://localhost:8080'
			}
		}
	}
</script>
<style scoped>
	.root{
		position: relative;
		width: 100%;
		height: 6rem;
		z-index: 0;
	}
	.root .root-top h1{
		position: absolute;
		top: 0.2rem;
		right: 0.2rem;
		background-color: gold;
		padding: 0.1rem 0.1rem;
		font-size: 0.4rem;
	}
	.root .root-top label aside{
		float: left;
		color: #d8ab78;
		background-color: black;
		font-size: 0.32rem;
		padding: 0.1rem 0.1rem;
		border-radius: 0.3rem;
		margin-top: 0.5rem;
		margin-left: 0.3rem;
	}
	.root .root-top label span img{
		width: 0.4rem;
		height: 0.4rem;
		text-align: left;
		margin-left: 0rem;
	}
	.root .root-top label span{
		/* position: relative; */
		float: left;
		margin-left: 0.3rem;
		background-color: #fff2b3;
		padding: 0.1rem 0.1rem;
		border-radius: 0.3rem;
		margin-top: 0.4rem;
		font-size: 0.32rem;
		height: 0.5rem;
	}
	.root .root-top{
		position: relative;
		width: 100%;
		background-image: url(../../../../public/grzx/2.png);
		background-repeat: no-repeat;
		background-size: 100% 100%;
		height: 5rem;
		display: flex;
		align-items: center;
	}
	.root .root-top img{
		width: 2rem;
		height: 2rem;
		border-radius: 1rem;
		margin-left: 0.5rem;
	}
	.root .root-top p{
		font-size: 0.6rem;
		font-weight: bold;
		padding-left: 0.4rem;
		position: absolute;
		top: 1.6rem;
		left: 2.6rem;
	}
	.root .root-top a{
	   display: block;
	   background-image: linear-gradient(#ff6000,#ffa32c);
	   position: absolute;
	   left: 3rem;
	   font-weight: bold;
	   bottom: 1.5rem;
	   padding: 0.25rem 0.25rem;
	   border-radius: 0.3rem;
	   color: white;
	}
	.root .root-bottom{
		position: relative;
		width: 95%;
		height: 1.8rem;
		position: absolute;
		bottom: 0.2rem;
		left: 0.25rem;
		border-radius: 0.2rem;
		background-image: url(../../../../public/grzx/3.png);
		background-repeat: no-repeat;
		background-size: 100% 100%;
		background-size: cover;
	}
	.root .root-bottom aside{
		position: absolute;
		top: 0rem;
		left: 0rem;
		background-color: gray;
		border-radius: 0.23rem 0 0.3rem 0;
		padding: 0.1rem 0.2rem;
		z-index: 5;
		color: whitesmoke;
	}
	.root .root-bottom  img{
		width: 1.5rem;
		height: 1rem;
		position:relative;
		top: 0.45rem;
		left: 0.5rem;
		z-index: 0;
	}
	.root .root-bottom  p{
		display: inline-block;
		position: absolute;
		top: 0.5rem;
		left: 2.2rem;
		color: #fef6a2;
		font-size: 0.35rem;
	}
	.root .root-bottom label{
		display: block;
		position: absolute;
		left: 2.2rem;
		color: #fef6a2;
		font-size: 0.35rem;
	}
	.root .root-bottom input{
		background-color: #ffe595;
		position: absolute;
		right: 0.2rem;
		top: 0.2rem;
		border-radius: 0.35rem;
		border: none;
		padding: 0.1rem 0.2rem;
	}
</style>
